package com.java.control.search;

/**
 * 产品
 * @author wqf
 * @version  Nov 24, 2011 11:55:45 AM
 */
public class QListSearchCond extends SearchCond{
	
	private Long qid;
	
	public ConditionPart getCondition(){
		ConditionPart cp=new ConditionPart();
		StringBuffer searchStr=new StringBuffer(" 1=1");
		
		if(null!=qid){
			searchStr.append(" and qid.id=?");
			cp.getParams().add(qid);
		}
		cp.setExpression(searchStr.toString());
		return cp;
	}

	public Long getQid() {
		return qid;
	}

	public void setQid(Long qid) {
		this.qid = qid;
	}


}
